﻿using Microsoft.Extensions.DependencyInjection;
using System;

namespace Fast
{
    public interface IFastApplicationBase : IDisposable
    {
        /// <summary>
        /// 注册到 <see cref="IFastApplication"/> 的服务集合
        /// </summary>
        IServiceCollection Services { get; }

        /// <summary>
        /// 由 <see cref="IFastApplication"/> 使用的根服务提供对象
        /// </summary>
        IServiceProvider ServiceProvider { get; }

        /// <summary>
        /// 
        /// </summary>
        void Shutdown();
    }
}
